package asia.kalin.controller;

import asia.kalin.feignClient.UserFeign;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Kalin
 * @Name：NoteController
 * @Date: 2025/6/9
 * @description
 */

@RestController
@RequestMapping("/note")
public class NoteController {

    @DubboReference
    private UserFeign userFeign;

    @RequestMapping("/test")
    private String test(){
        return "note服务测试接口调用";
    }

    @RequestMapping("/feignTest")
    public String feignTest(){
        String test = userFeign.test();
        return "note服务测试通过dubbo远程调用User,这是结果：" + test;
    }
}
